<?php 
echo $rating->js_css();
?>
<p>
<?php 
echo $paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
));
?></p>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
	<th><?php echo $paginator->sort('display_name');?></th>
	<th><?php echo $paginator->sort('email');?></th>
	<th><?php echo $paginator->sort('homepage');?></th>
	<th><?php echo $paginator->sort('state');?></th>
	<th>rating</th>
	<th>vote</th>

	
</tr>
<?php
$i = 0;
foreach ($users as $user):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $user['User']['display_name']; ?>
		</td>
		<td>
			<?php echo $user['User']['email']; ?>
		</td>
		<td>
			<?php echo $user['User']['homepage']; ?>
		</td>
		<td>
			<?php echo $user['User']['state']; ?>
		</td>
		<td>
			<?php echo $rating->showRating($user['User']['id'], 'User');?>
		</td>
		<td>
			<?php echo $vote->showVotes($user['User']['id'], 'User');?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>